﻿namespace KingerRobot.PCRBW.Dao;
partial class Db : K8.EF.DbContext
{
    /// <summary>
    /// MES 批次锁定信息
    /// </summary>
    public DbSet<MesLock> MesLocks { get; set; }
}

/// <summary>
/// MES 批次锁定信息
/// 表[mes_lock]
/// </summary>
[Table("mes_lock")]
public class MesLock
{
    /// <summary>
    /// 主键
    /// </summary>
    [Key]
    [Column("lock_id")]
    public string LockId { get; set; }
    /// <summary>
    /// 批次名称
    /// </summary>
    [Column("batch_name")]
    public string BatchName { get; set; }
    /// <summary>
    /// 物料编号
    /// </summary>
    [Column("part_number")]
    public string PartNumber { get; set; }
    /// <summary>
    /// RFID
    /// </summary>
    [Column("RFID")]
    public string RFID { get; set; }
    /// <summary>
    /// 0:解锁；1:锁定
    /// </summary>
    [Column("pass_flag")]
    public string PassFlag { get; set; }
    /// <summary>
    /// 创建时间
    /// </summary>
    [Column("create_time")]
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// 更新时间
    /// </summary>
    [Column("update_time")]
    public DateTime? UpdateTime { get; set; }
    /// <summary>
    /// 创建人
    /// </summary>
    [Column("create_user")]
    public string CreateUser { get; set; }
    /// <summary>
    /// 更新人
    /// </summary>
    [Column("update_user")]
    public string UpdateUser { get; set; }
    /// <summary>
    /// 备注
    /// </summary>
    [Column("remarks")]
    public string Remarks { get; set; }
    /// <summary>
    /// 更新标志 1:新增 2:删除 0;复位 
    /// </summary>
    [Column("update_flag")]
    public int? UpdateFlag { get; set; }
}

